@nexssp/language
Programming Languages database, templates, info..
Note
This Nexss Programmer's plugin is the effect of the refactoring the Nexss Programmer @nexssp/cli which development has been started in 2018. This module can be used also separately without the Nexss Programmer.
Commands
nexssp-language [ext] readme # new - displays README.md for the selected [ext] language
nexssp-language [ext] help
nexssp-language list
nexssp-language [ext] install # install language from over 50 of them, see above list
nexssp-language installed # installed languages
nexssp-language update # update languages definition to the latest version
nexssp-language status # status - handy for dev of the languages
Available commands
Below you can use also like:
- nexssp-language (if installed by npm i -g @nexssp/language)
- nexss language (if Nexss Programmer is installed by @npm i -g @nexssp/cli)
- nexss l (installed Nexss Programmer)
- npx @nexssp/language
For development very handy is node ./bin/nexssp-language.js
node ./bin/nexssp-language.js
node ./bin/nexssp-language.js php help
node ./bin/nexssp-language.js php readme
node ./bin/nexssp-language.js js
node ./bin/nexssp-language.js py
node ./bin/nexssp-language.js js run "console.log(1+1)"
node ./bin/nexssp-language.js py run "print(1+1)"
node ./bin/nexssp-language.js list
node ./bin/nexssp-language.js installed
node ./bin/nexssp-language.js js e
node ./bin/nexssp-language.js js h
node ./bin/nexssp-language.js js d
node ./bin/nexssp-language.js js compilers
node ./bin/nexssp-language.js js builders
node ./bin/nexssp-language.js js pm
node ./bin/nexssp-language.js js default compiler node
node ./bin/nexssp-language.js js default compiler unset
node ./bin/nexssp-language.js status
node ./bin/nexssp-language.js update
node ./bin/nexssp-language.js format1
Example: nexssp-language installed
Over 50 programming languages to choose.
Example: nexssp-language list
List of supported languages
Repositories
@nexssp/language usege external repositories for all languages. List of them is located in the src/nexssp-language-repos.json
file.
const languages = require('@nexssp/languages')
console.log(languages.list())
console.log(languages.languageNames())
const selectedLanguage = languages.byFilename('myfile.js')
const selectedLanguage = languages.byExtension('js')
selectedLanguage.compiler()
selectedLanguage.compiler('python3')
selectedLanguage.compiler('python3', true)
selectedLanguage.builder()
selectedLanguage.getCompilerOrBuilder()
selectedLanguage.config()
Troubleshooting
Environment variables
- NEXSS_LANGUAGE_ENABLE_PROJECT_FOLDER - enable also search in current/project folder
process.env.NEXSS_LANGUAGE_ENABLE_PROJECT_FOLDER = true